# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aircrack-ng-beta
pkgver=1.2
pkgrel=1
pkgdesc='A key cracker for the 802.11 WEP and WPA-PSK protocols.'
arch=('x86_64' 'aarch64')
url='http://www.aircrack-ng.org/'
license=('GPL2' 'custom:BSD' 'OpenSSL')
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools')
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
source=("http://download.aircrack-ng.org/aircrack-ng-$pkgver-beta3.tar.gz")
sha512sums=('f6d17be10b8277f08d8867b4ced5a89f9de13cc59767958a6c617e583724d0baaafdda6c14ef3c1671cada2a5abdf885b49728910fb64d70a41ace9043b3e372')

build() {
  cd "aircrack-ng-$pkgver-beta3"

  make SQLITE=true UNSTABLE=true
}

package() {
  cd "/aircrack-ng-$pkgver-beta3"

  make DESTDIR="$pkgdir" SQLITE=true UNSTABLE=true \
    bindir=/usr/bin sbindir=/usr/bin mandir=/usr/share/man/man1 install
}

